﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.AlcCodes

@model CreateOrEditAlcCodeModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditAlcCode") + ": " + Model.AlcCode.StyleId) : L("CreateAlcCode")))

<!--html代码区域-->
<div class="modal-body">
    <form name="alcCodeInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.AlcCode.Id" />
        <div >

            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.AlcCode.Id" />
                }
            </div>

            <div class="form-group ">
                <label for="cartypeIdEdit">@L("CartypeId")</label>
                @Html.DropDownList("CartypeId", Model.Cartypes.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "cartypeIdEdit"
           })
            </div>

            <div class="form-group ">
                <label for="styleIdEdit">@L("StyleId")</label>
                @Html.DropDownList("StyleId", Model.Styles.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "styleIdEdit"
           })
            </div>

            <div class="form-group ">
                <label>@L("ALCCode")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.AlcCode.ALCCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="ALCCode" value="@Model.AlcCode.ALCCode" required maxlength="20" />
            </div>

            @*<div class="form-group ">
                <label>@L("SeatNo")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.AlcCode.SeatNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="SeatNo" value="@Model.AlcCode.SeatNo" required maxlength="20" />
            </div>*@

            <div class="form-group ">
                <label>@L("CarStyle")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.AlcCode.CarStyle.IsNullOrEmpty() ? "" : " edited")" type="text" name="CarStyle" value="@Model.AlcCode.CarStyle" required maxlength="50" />
            </div>
        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")